﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Zoomtel.Auth.Mvc.Attributes;
using Zoomtel.Entity.BIZ;
using Zoomtel.Persist.BIZ.Models;
using Zoomtel.Service.BIZ.ViewModels;

using Zoomtel.Service.BIZ;
using Zoomtel.Web.Controllers;

// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace Zoomtel.Web.Areas.Pub.Controllers
{
    [Description("短信接口")]
    public class SmsController : PubModuleController
    {
        private Service.Sms.SmsService _smsService;
        public SmsController(Service.Sms.SmsService smsService)
        {

            _smsService = smsService;
        }

        [HttpPost]
        [AllowAnonymous]
        [Description("发送短信")]
        public IResultModel Send([FromForm]string mobile, [FromForm]string type)
        {
            return _smsService.Send(mobile, type);
        }


       

    }
}
